package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "address")
public class Address implements Serializable {
     @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(exist = false)
    private Integer userinfo;


    /**
     * 关联用户id
     */
    @TableField(value = "userinfo_id")
    private Integer userinfoId;

    /**
     * 默认地址 1为默认地址
     */
    @TableField(value = "default_address")
    private Boolean defaultAddress;

    @TableField(exist = false)
    private Street street;

    /**
     * 街道地址
     */
    @TableField(value = "street_id")
    private Integer streetId;

    /**
     * 详细（具体到门牌号）
     */
    @TableField(value = "detail")
    private String detail;
    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_USERINFO_ID = "userinfo_id";

    public static final String COL_DEFAULT_ADRESS = "default_address";

    public static final String COL_STREET_ID = "street_id";

    public static final String COL_DETAIL = "detail";

    public static final String COL_ENABLE = "enable";
}